import request from '@/utils/request'

// 调用大模型解析非结构化需求文档
export function extractRequirementsFromFile(fileName) {
  return request({
    url: '/data/llm/extract-requirements',
    method: 'post',
    data: { fileName }
  })
}

// 调用大模型处理文本内容
export function extractRequirementsFromText(content) {
  return request({
    url: '/data/llm/extract-requirements-text',
    method: 'post',
    data: { content }
  })
}

// 检查非标准技术指标
export function checkNonStandardIndicators(data) {
  return request({
    url: '/data/llm/check-non-standard-indicators',
    method: 'post',
    data: data
  })
}

// 上传自定义企业标准文档
export function uploadCustomStandard(data) {
  return request({
    url: '/data/llm/upload-custom-standard-text',
    method: 'post',
    data: data
  })
}

// 获取自定义企业标准详情
export function getCustomStandardDetails(standardId) {
  return request({
    url: `/data/llm/custom-standard/${standardId}`,
    method: 'get'
  })
}

// 使用自定义标准检查技术指标
export function checkWithCustomStandard(data) {
  return request({
    url: '/data/llm/check-with-custom-standard',
    method: 'post',
    data: data
  })
}